﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MVCLD.Models
{
    public class ArticleTypeModels
    {
        #region Data Access
        MVCLDServiceModels db = new MVCLDServiceModels();
        #endregion

    }

    // Class Validation
    [MetadataType(typeof(ArticleType_Validation))]
    public partial class ArticleType
    {
        class ArticleType_Validation 
        {
            [ScaffoldColumn(false)]
            public Guid ArticleTypeID { get; set; }

            [Required(ErrorMessage = "Submission Type name is required")]
            [StringLength(300)]
            [DisplayName("Article / Submission Type Name")]
            public string ArticleTypeName { get; set; }

            [DisplayName("Cost of submission (If any)")]
            public float Cost { get; set; }

            [Required(ErrorMessage = "Sort order missing")]
            [DisplayName("Sort Order")]
            public int SortOrder { get; set; }

            [UIHint("TextArea")]
            [DisplayName("Notes about this type")]
            public string Notes { get; set; }

            [DisplayName("Requires Reciprocal Link")]
            public Boolean RequiresReciprocalLink { get; set; }
        }
    }

}